#ifndef __COMMUNICATION_WORKER_HEAD_H
#define __COMMUNICATION_WORKER_HEAD_H
#include "communication-message.h"
#include <map>
#include "communication-device.h"
#include "smart-device-manager.h"
#include "smart-device-net-protocol.h"
#include "communication-device-doorlock.h"
#include "communication-device-sensor.h"
#include "communication-device-sniffing.h"
#include "communication-device-fingerprint.h"
#include "communication-device-electrical.h"
#include "communication-device-list.h"
#include "Fingerprint-manager.h"

/**
 * 消息处理的类
 */
class CommunicationWorker
{
public:
    CommunicationWorker(const string &uartDevice);
    void dowork(const CommunicationMessage &message);

private:
    map<string, CommunicationDevice *> deviceMap;
    SmartDeviceManager *devicemanager;
    FingerprintManager *fingerPrintManger;
};

#endif